
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module ZDSConfigParser</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>ZDSConfigParser</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/media/disk-1/data/zdstack/trunk/ZDStack/ZDSConfigParser.py">/media/disk-1/data/zdstack/trunk/ZDStack/ZDSConfigParser.py</a></font></td></tr></table>
    <p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="ZDSConfigParser.html#BaseConfigParser">BaseConfigParser</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="ZDSConfigParser.html#RawZDSConfigParser">RawZDSConfigParser</a>(<a href="ZDSConfigParser.html#BaseConfigParser">BaseConfigParser</a>, <a href="ConfigParser.html#RawConfigParser">ConfigParser.RawConfigParser</a>)
</font></dt><dt><font face="helvetica, arial"><a href="ZDSConfigParser.html#ZDSConfigParser">ZDSConfigParser</a>(<a href="ZDSConfigParser.html#BaseConfigParser">BaseConfigParser</a>, <a href="ConfigParser.html#ConfigParser">ConfigParser.ConfigParser</a>)
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="BaseConfigParser">class <strong>BaseConfigParser</strong></a></font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#BaseConfigParser">BaseConfigParser</a>&nbsp;is&nbsp;<a href="ConfigParser.html#ConfigParser">ConfigParser</a>&nbsp;with&nbsp;reasonable&nbsp;file&nbsp;handling.<br>
&nbsp;<br>
This&nbsp;class&nbsp;is&nbsp;used&nbsp;as&nbsp;a&nbsp;MixIn&nbsp;class&nbsp;with&nbsp;<a href="ConfigParser.html#ConfigParser">ConfigParser</a>&nbsp;and<br>
<a href="ConfigParser.html#RawConfigParser">RawConfigParser</a>.<br>
&nbsp;<br>
TODO:&nbsp;make&nbsp;threadsafe<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="BaseConfigParser-__init__"><strong>__init__</strong></a>(self, filename<font color="#909090">=None</font>, allow_duplicate_sections<font color="#909090">=True</font>)</dt><dd><tt>Initializes&nbsp;a&nbsp;<a href="#BaseConfigParser">BaseConfigParser</a>.<br>
&nbsp;<br>
filename:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;name&nbsp;of&nbsp;a<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;file&nbsp;to&nbsp;parse&nbsp;initially<br>
allow_duplicate_sections:&nbsp;a&nbsp;boolean,&nbsp;whether&nbsp;or&nbsp;not&nbsp;to&nbsp;allow<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sections&nbsp;with&nbsp;duplicate&nbsp;names&nbsp;or&nbsp;not<br>
&nbsp;<br>
All&nbsp;arguments&nbsp;are&nbsp;optional.</tt></dd></dl>

<dl><dt><a name="BaseConfigParser-clear"><strong>clear</strong></a>(self)</dt><dd><tt>Removes&nbsp;all&nbsp;sections,&nbsp;including&nbsp;the&nbsp;DEFAULT&nbsp;section.</tt></dd></dl>

<dl><dt><a name="BaseConfigParser-defaults"><strong>defaults</strong></a>(self)</dt><dd><tt>Returns&nbsp;a&nbsp;dict&nbsp;of&nbsp;options&nbsp;&amp;&nbsp;values&nbsp;in&nbsp;the&nbsp;DEFAULT&nbsp;section.</tt></dd></dl>

<dl><dt><a name="BaseConfigParser-load"><strong>load</strong></a>(self)</dt><dd><tt>Loads&nbsp;the&nbsp;data&nbsp;from&nbsp;the&nbsp;configuration&nbsp;file.</tt></dd></dl>

<dl><dt><a name="BaseConfigParser-loadfp"><strong>loadfp</strong></a>(self, fobj)</dt><dd><tt>Loads&nbsp;configuration&nbsp;data&nbsp;from&nbsp;a&nbsp;file&nbsp;object.<br>
&nbsp;<br>
fobj:&nbsp;a&nbsp;file&nbsp;object&nbsp;containing&nbsp;configuration&nbsp;data</tt></dd></dl>

<dl><dt><a name="BaseConfigParser-reload"><strong>reload</strong></a>(self)</dt><dd><tt>Reloads&nbsp;configuration&nbsp;data&nbsp;from&nbsp;the&nbsp;configuration&nbsp;file.</tt></dd></dl>

<dl><dt><a name="BaseConfigParser-save"><strong>save</strong></a>(self)</dt><dd><tt>Writes&nbsp;configuration&nbsp;data&nbsp;to&nbsp;the&nbsp;configuration&nbsp;file.</tt></dd></dl>

<dl><dt><a name="BaseConfigParser-set_file"><strong>set_file</strong></a>(self, filename)</dt><dd><tt>Sets&nbsp;the&nbsp;location&nbsp;of&nbsp;the&nbsp;configuration&nbsp;file.<br>
&nbsp;<br>
filename:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;new&nbsp;location&nbsp;of&nbsp;the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;configuration&nbsp;file</tt></dd></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="RawZDSConfigParser">class <strong>RawZDSConfigParser</strong></a>(<a href="ZDSConfigParser.html#BaseConfigParser">BaseConfigParser</a>, <a href="ConfigParser.html#RawConfigParser">ConfigParser.RawConfigParser</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#RawZDSConfigParser">RawZDSConfigParser</a>&nbsp;combines&nbsp;<a href="#BaseConfigParser">BaseConfigParser</a>&nbsp;and&nbsp;<a href="ConfigParser.html#RawConfigParser">RawConfigParser</a>.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="ZDSConfigParser.html#RawZDSConfigParser">RawZDSConfigParser</a></dd>
<dd><a href="ZDSConfigParser.html#BaseConfigParser">BaseConfigParser</a></dd>
<dd><a href="ConfigParser.html#RawConfigParser">ConfigParser.RawConfigParser</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="RawZDSConfigParser-__init__"><strong>__init__</strong></a>(self, filename<font color="#909090">=None</font>, allow_duplicate_sections<font color="#909090">=True</font>)</dt></dl>

<hr>
Methods inherited from <a href="ZDSConfigParser.html#BaseConfigParser">BaseConfigParser</a>:<br>
<dl><dt><a name="RawZDSConfigParser-clear"><strong>clear</strong></a>(self)</dt><dd><tt>Removes&nbsp;all&nbsp;sections,&nbsp;including&nbsp;the&nbsp;DEFAULT&nbsp;section.</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-defaults"><strong>defaults</strong></a>(self)</dt><dd><tt>Returns&nbsp;a&nbsp;dict&nbsp;of&nbsp;options&nbsp;&amp;&nbsp;values&nbsp;in&nbsp;the&nbsp;DEFAULT&nbsp;section.</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-load"><strong>load</strong></a>(self)</dt><dd><tt>Loads&nbsp;the&nbsp;data&nbsp;from&nbsp;the&nbsp;configuration&nbsp;file.</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-loadfp"><strong>loadfp</strong></a>(self, fobj)</dt><dd><tt>Loads&nbsp;configuration&nbsp;data&nbsp;from&nbsp;a&nbsp;file&nbsp;object.<br>
&nbsp;<br>
fobj:&nbsp;a&nbsp;file&nbsp;object&nbsp;containing&nbsp;configuration&nbsp;data</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-reload"><strong>reload</strong></a>(self)</dt><dd><tt>Reloads&nbsp;configuration&nbsp;data&nbsp;from&nbsp;the&nbsp;configuration&nbsp;file.</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-save"><strong>save</strong></a>(self)</dt><dd><tt>Writes&nbsp;configuration&nbsp;data&nbsp;to&nbsp;the&nbsp;configuration&nbsp;file.</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-set_file"><strong>set_file</strong></a>(self, filename)</dt><dd><tt>Sets&nbsp;the&nbsp;location&nbsp;of&nbsp;the&nbsp;configuration&nbsp;file.<br>
&nbsp;<br>
filename:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;new&nbsp;location&nbsp;of&nbsp;the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;configuration&nbsp;file</tt></dd></dl>

<hr>
Methods inherited from <a href="ConfigParser.html#RawConfigParser">ConfigParser.RawConfigParser</a>:<br>
<dl><dt><a name="RawZDSConfigParser-add_section"><strong>add_section</strong></a>(self, section)</dt><dd><tt>Create&nbsp;a&nbsp;new&nbsp;section&nbsp;in&nbsp;the&nbsp;configuration.<br>
&nbsp;<br>
Raise&nbsp;DuplicateSectionError&nbsp;if&nbsp;a&nbsp;section&nbsp;by&nbsp;the&nbsp;specified&nbsp;name<br>
already&nbsp;exists.</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-get"><strong>get</strong></a>(self, section, option)</dt></dl>

<dl><dt><a name="RawZDSConfigParser-getboolean"><strong>getboolean</strong></a>(self, section, option)</dt></dl>

<dl><dt><a name="RawZDSConfigParser-getfloat"><strong>getfloat</strong></a>(self, section, option)</dt></dl>

<dl><dt><a name="RawZDSConfigParser-getint"><strong>getint</strong></a>(self, section, option)</dt></dl>

<dl><dt><a name="RawZDSConfigParser-has_option"><strong>has_option</strong></a>(self, section, option)</dt><dd><tt>Check&nbsp;for&nbsp;the&nbsp;existence&nbsp;of&nbsp;a&nbsp;given&nbsp;option&nbsp;in&nbsp;a&nbsp;given&nbsp;section.</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-has_section"><strong>has_section</strong></a>(self, section)</dt><dd><tt>Indicate&nbsp;whether&nbsp;the&nbsp;named&nbsp;section&nbsp;is&nbsp;present&nbsp;in&nbsp;the&nbsp;configuration.<br>
&nbsp;<br>
The&nbsp;DEFAULT&nbsp;section&nbsp;is&nbsp;not&nbsp;acknowledged.</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-items"><strong>items</strong></a>(self, section)</dt></dl>

<dl><dt><a name="RawZDSConfigParser-options"><strong>options</strong></a>(self, section)</dt><dd><tt>Return&nbsp;a&nbsp;list&nbsp;of&nbsp;option&nbsp;names&nbsp;for&nbsp;the&nbsp;given&nbsp;section&nbsp;name.</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-optionxform"><strong>optionxform</strong></a>(self, optionstr)</dt></dl>

<dl><dt><a name="RawZDSConfigParser-read"><strong>read</strong></a>(self, filenames)</dt><dd><tt>Read&nbsp;and&nbsp;parse&nbsp;a&nbsp;filename&nbsp;or&nbsp;a&nbsp;list&nbsp;of&nbsp;filenames.<br>
&nbsp;<br>
Files&nbsp;that&nbsp;cannot&nbsp;be&nbsp;opened&nbsp;are&nbsp;silently&nbsp;ignored;&nbsp;this&nbsp;is<br>
designed&nbsp;so&nbsp;that&nbsp;you&nbsp;can&nbsp;specify&nbsp;a&nbsp;list&nbsp;of&nbsp;potential<br>
configuration&nbsp;file&nbsp;locations&nbsp;(e.g.&nbsp;current&nbsp;directory,&nbsp;user's<br>
home&nbsp;directory,&nbsp;systemwide&nbsp;directory),&nbsp;and&nbsp;all&nbsp;existing<br>
configuration&nbsp;files&nbsp;in&nbsp;the&nbsp;list&nbsp;will&nbsp;be&nbsp;read.&nbsp;&nbsp;A&nbsp;single<br>
filename&nbsp;may&nbsp;also&nbsp;be&nbsp;given.<br>
&nbsp;<br>
Return&nbsp;list&nbsp;of&nbsp;successfully&nbsp;read&nbsp;files.</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-readfp"><strong>readfp</strong></a>(self, fp, filename<font color="#909090">=None</font>)</dt><dd><tt>Like&nbsp;<a href="#RawZDSConfigParser-read">read</a>()&nbsp;but&nbsp;the&nbsp;argument&nbsp;must&nbsp;be&nbsp;a&nbsp;file-like&nbsp;object.<br>
&nbsp;<br>
The&nbsp;`fp'&nbsp;argument&nbsp;must&nbsp;have&nbsp;a&nbsp;`readline'&nbsp;method.&nbsp;&nbsp;Optional<br>
second&nbsp;argument&nbsp;is&nbsp;the&nbsp;`filename',&nbsp;which&nbsp;if&nbsp;not&nbsp;given,&nbsp;is<br>
taken&nbsp;from&nbsp;fp.name.&nbsp;&nbsp;If&nbsp;fp&nbsp;has&nbsp;no&nbsp;`name'&nbsp;attribute,&nbsp;`&lt;???&gt;'&nbsp;is<br>
used.</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-remove_option"><strong>remove_option</strong></a>(self, section, option)</dt><dd><tt>Remove&nbsp;an&nbsp;option.</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-remove_section"><strong>remove_section</strong></a>(self, section)</dt><dd><tt>Remove&nbsp;a&nbsp;file&nbsp;section.</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-sections"><strong>sections</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;list&nbsp;of&nbsp;section&nbsp;names,&nbsp;excluding&nbsp;[DEFAULT]</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-set"><strong>set</strong></a>(self, section, option, value)</dt><dd><tt>Set&nbsp;an&nbsp;option.</tt></dd></dl>

<dl><dt><a name="RawZDSConfigParser-write"><strong>write</strong></a>(self, fp)</dt><dd><tt>Write&nbsp;an&nbsp;.ini-format&nbsp;representation&nbsp;of&nbsp;the&nbsp;configuration&nbsp;state.</tt></dd></dl>

<hr>
Data and other attributes inherited from <a href="ConfigParser.html#RawConfigParser">ConfigParser.RawConfigParser</a>:<br>
<dl><dt><strong>OPTCRE</strong> = &lt;_sre.SRE_Pattern object at 0x82022a0&gt;</dl>

<dl><dt><strong>SECTCRE</strong> = &lt;_sre.SRE_Pattern object at 0xb7e0c6e0&gt;</dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="ZDSConfigParser">class <strong>ZDSConfigParser</strong></a>(<a href="ZDSConfigParser.html#BaseConfigParser">BaseConfigParser</a>, <a href="ConfigParser.html#ConfigParser">ConfigParser.ConfigParser</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#ZDSConfigParser">ZDSConfigParser</a>&nbsp;combines&nbsp;<a href="#BaseConfigParser">BaseConfigParser</a>&nbsp;and&nbsp;<a href="ConfigParser.html#ConfigParser">ConfigParser</a>.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="ZDSConfigParser.html#ZDSConfigParser">ZDSConfigParser</a></dd>
<dd><a href="ZDSConfigParser.html#BaseConfigParser">BaseConfigParser</a></dd>
<dd><a href="ConfigParser.html#ConfigParser">ConfigParser.ConfigParser</a></dd>
<dd><a href="ConfigParser.html#RawConfigParser">ConfigParser.RawConfigParser</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="ZDSConfigParser-__init__"><strong>__init__</strong></a>(self, filename<font color="#909090">=None</font>, allow_duplicate_sections<font color="#909090">=True</font>)</dt></dl>

<hr>
Methods inherited from <a href="ZDSConfigParser.html#BaseConfigParser">BaseConfigParser</a>:<br>
<dl><dt><a name="ZDSConfigParser-clear"><strong>clear</strong></a>(self)</dt><dd><tt>Removes&nbsp;all&nbsp;sections,&nbsp;including&nbsp;the&nbsp;DEFAULT&nbsp;section.</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-defaults"><strong>defaults</strong></a>(self)</dt><dd><tt>Returns&nbsp;a&nbsp;dict&nbsp;of&nbsp;options&nbsp;&amp;&nbsp;values&nbsp;in&nbsp;the&nbsp;DEFAULT&nbsp;section.</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-load"><strong>load</strong></a>(self)</dt><dd><tt>Loads&nbsp;the&nbsp;data&nbsp;from&nbsp;the&nbsp;configuration&nbsp;file.</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-loadfp"><strong>loadfp</strong></a>(self, fobj)</dt><dd><tt>Loads&nbsp;configuration&nbsp;data&nbsp;from&nbsp;a&nbsp;file&nbsp;object.<br>
&nbsp;<br>
fobj:&nbsp;a&nbsp;file&nbsp;object&nbsp;containing&nbsp;configuration&nbsp;data</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-reload"><strong>reload</strong></a>(self)</dt><dd><tt>Reloads&nbsp;configuration&nbsp;data&nbsp;from&nbsp;the&nbsp;configuration&nbsp;file.</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-save"><strong>save</strong></a>(self)</dt><dd><tt>Writes&nbsp;configuration&nbsp;data&nbsp;to&nbsp;the&nbsp;configuration&nbsp;file.</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-set_file"><strong>set_file</strong></a>(self, filename)</dt><dd><tt>Sets&nbsp;the&nbsp;location&nbsp;of&nbsp;the&nbsp;configuration&nbsp;file.<br>
&nbsp;<br>
filename:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;new&nbsp;location&nbsp;of&nbsp;the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;configuration&nbsp;file</tt></dd></dl>

<hr>
Methods inherited from <a href="ConfigParser.html#ConfigParser">ConfigParser.ConfigParser</a>:<br>
<dl><dt><a name="ZDSConfigParser-get"><strong>get</strong></a>(self, section, option, raw<font color="#909090">=False</font>, vars<font color="#909090">=None</font>)</dt><dd><tt>Get&nbsp;an&nbsp;option&nbsp;value&nbsp;for&nbsp;a&nbsp;given&nbsp;section.<br>
&nbsp;<br>
All&nbsp;%&nbsp;interpolations&nbsp;are&nbsp;expanded&nbsp;in&nbsp;the&nbsp;return&nbsp;values,&nbsp;based&nbsp;on&nbsp;the<br>
defaults&nbsp;passed&nbsp;into&nbsp;the&nbsp;constructor,&nbsp;unless&nbsp;the&nbsp;optional&nbsp;argument<br>
`raw'&nbsp;is&nbsp;true.&nbsp;&nbsp;Additional&nbsp;substitutions&nbsp;may&nbsp;be&nbsp;provided&nbsp;using&nbsp;the<br>
`vars'&nbsp;argument,&nbsp;which&nbsp;must&nbsp;be&nbsp;a&nbsp;dictionary&nbsp;whose&nbsp;contents&nbsp;overrides<br>
any&nbsp;pre-existing&nbsp;defaults.<br>
&nbsp;<br>
The&nbsp;section&nbsp;DEFAULT&nbsp;is&nbsp;special.</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-items"><strong>items</strong></a>(self, section, raw<font color="#909090">=False</font>, vars<font color="#909090">=None</font>)</dt><dd><tt>Return&nbsp;a&nbsp;list&nbsp;of&nbsp;tuples&nbsp;with&nbsp;(name,&nbsp;value)&nbsp;for&nbsp;each&nbsp;option<br>
in&nbsp;the&nbsp;section.<br>
&nbsp;<br>
All&nbsp;%&nbsp;interpolations&nbsp;are&nbsp;expanded&nbsp;in&nbsp;the&nbsp;return&nbsp;values,&nbsp;based&nbsp;on&nbsp;the<br>
defaults&nbsp;passed&nbsp;into&nbsp;the&nbsp;constructor,&nbsp;unless&nbsp;the&nbsp;optional&nbsp;argument<br>
`raw'&nbsp;is&nbsp;true.&nbsp;&nbsp;Additional&nbsp;substitutions&nbsp;may&nbsp;be&nbsp;provided&nbsp;using&nbsp;the<br>
`vars'&nbsp;argument,&nbsp;which&nbsp;must&nbsp;be&nbsp;a&nbsp;dictionary&nbsp;whose&nbsp;contents&nbsp;overrides<br>
any&nbsp;pre-existing&nbsp;defaults.<br>
&nbsp;<br>
The&nbsp;section&nbsp;DEFAULT&nbsp;is&nbsp;special.</tt></dd></dl>

<hr>
Methods inherited from <a href="ConfigParser.html#RawConfigParser">ConfigParser.RawConfigParser</a>:<br>
<dl><dt><a name="ZDSConfigParser-add_section"><strong>add_section</strong></a>(self, section)</dt><dd><tt>Create&nbsp;a&nbsp;new&nbsp;section&nbsp;in&nbsp;the&nbsp;configuration.<br>
&nbsp;<br>
Raise&nbsp;DuplicateSectionError&nbsp;if&nbsp;a&nbsp;section&nbsp;by&nbsp;the&nbsp;specified&nbsp;name<br>
already&nbsp;exists.</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-getboolean"><strong>getboolean</strong></a>(self, section, option)</dt></dl>

<dl><dt><a name="ZDSConfigParser-getfloat"><strong>getfloat</strong></a>(self, section, option)</dt></dl>

<dl><dt><a name="ZDSConfigParser-getint"><strong>getint</strong></a>(self, section, option)</dt></dl>

<dl><dt><a name="ZDSConfigParser-has_option"><strong>has_option</strong></a>(self, section, option)</dt><dd><tt>Check&nbsp;for&nbsp;the&nbsp;existence&nbsp;of&nbsp;a&nbsp;given&nbsp;option&nbsp;in&nbsp;a&nbsp;given&nbsp;section.</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-has_section"><strong>has_section</strong></a>(self, section)</dt><dd><tt>Indicate&nbsp;whether&nbsp;the&nbsp;named&nbsp;section&nbsp;is&nbsp;present&nbsp;in&nbsp;the&nbsp;configuration.<br>
&nbsp;<br>
The&nbsp;DEFAULT&nbsp;section&nbsp;is&nbsp;not&nbsp;acknowledged.</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-options"><strong>options</strong></a>(self, section)</dt><dd><tt>Return&nbsp;a&nbsp;list&nbsp;of&nbsp;option&nbsp;names&nbsp;for&nbsp;the&nbsp;given&nbsp;section&nbsp;name.</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-optionxform"><strong>optionxform</strong></a>(self, optionstr)</dt></dl>

<dl><dt><a name="ZDSConfigParser-read"><strong>read</strong></a>(self, filenames)</dt><dd><tt>Read&nbsp;and&nbsp;parse&nbsp;a&nbsp;filename&nbsp;or&nbsp;a&nbsp;list&nbsp;of&nbsp;filenames.<br>
&nbsp;<br>
Files&nbsp;that&nbsp;cannot&nbsp;be&nbsp;opened&nbsp;are&nbsp;silently&nbsp;ignored;&nbsp;this&nbsp;is<br>
designed&nbsp;so&nbsp;that&nbsp;you&nbsp;can&nbsp;specify&nbsp;a&nbsp;list&nbsp;of&nbsp;potential<br>
configuration&nbsp;file&nbsp;locations&nbsp;(e.g.&nbsp;current&nbsp;directory,&nbsp;user's<br>
home&nbsp;directory,&nbsp;systemwide&nbsp;directory),&nbsp;and&nbsp;all&nbsp;existing<br>
configuration&nbsp;files&nbsp;in&nbsp;the&nbsp;list&nbsp;will&nbsp;be&nbsp;read.&nbsp;&nbsp;A&nbsp;single<br>
filename&nbsp;may&nbsp;also&nbsp;be&nbsp;given.<br>
&nbsp;<br>
Return&nbsp;list&nbsp;of&nbsp;successfully&nbsp;read&nbsp;files.</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-readfp"><strong>readfp</strong></a>(self, fp, filename<font color="#909090">=None</font>)</dt><dd><tt>Like&nbsp;<a href="#ZDSConfigParser-read">read</a>()&nbsp;but&nbsp;the&nbsp;argument&nbsp;must&nbsp;be&nbsp;a&nbsp;file-like&nbsp;object.<br>
&nbsp;<br>
The&nbsp;`fp'&nbsp;argument&nbsp;must&nbsp;have&nbsp;a&nbsp;`readline'&nbsp;method.&nbsp;&nbsp;Optional<br>
second&nbsp;argument&nbsp;is&nbsp;the&nbsp;`filename',&nbsp;which&nbsp;if&nbsp;not&nbsp;given,&nbsp;is<br>
taken&nbsp;from&nbsp;fp.name.&nbsp;&nbsp;If&nbsp;fp&nbsp;has&nbsp;no&nbsp;`name'&nbsp;attribute,&nbsp;`&lt;???&gt;'&nbsp;is<br>
used.</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-remove_option"><strong>remove_option</strong></a>(self, section, option)</dt><dd><tt>Remove&nbsp;an&nbsp;option.</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-remove_section"><strong>remove_section</strong></a>(self, section)</dt><dd><tt>Remove&nbsp;a&nbsp;file&nbsp;section.</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-sections"><strong>sections</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;list&nbsp;of&nbsp;section&nbsp;names,&nbsp;excluding&nbsp;[DEFAULT]</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-set"><strong>set</strong></a>(self, section, option, value)</dt><dd><tt>Set&nbsp;an&nbsp;option.</tt></dd></dl>

<dl><dt><a name="ZDSConfigParser-write"><strong>write</strong></a>(self, fp)</dt><dd><tt>Write&nbsp;an&nbsp;.ini-format&nbsp;representation&nbsp;of&nbsp;the&nbsp;configuration&nbsp;state.</tt></dd></dl>

<hr>
Data and other attributes inherited from <a href="ConfigParser.html#RawConfigParser">ConfigParser.RawConfigParser</a>:<br>
<dl><dt><strong>OPTCRE</strong> = &lt;_sre.SRE_Pattern object at 0x82022a0&gt;</dl>

<dl><dt><strong>SECTCRE</strong> = &lt;_sre.SRE_Pattern object at 0xb7e0c6e0&gt;</dl>

</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>DEFAULTSECT</strong> = 'DEFAULT'</td></tr></table>
</body></html>